#ifndef COLORS_H
#define COLORS_H
#include "SDL\SDL.h"

static enum Color {
	 red		= 0xFF0000,
	 green		= 0x00FF00,
	 blue		= 0x0000FF,
	 orange		= 0xff8040,
	 brown		= 0x804000,
	 yellow		= 0xffff00,
	 dark_green = 0x008000,
	 dark_blue  = 0x000080,
	 purple		= 0x800080,
	 pink		= 0xff0080,
	 black		= 0x000000,
	 white		= 0xffffff,
	 lightgrey	= 0xdedede,
	 grey		= 0x808080,
	 // Player colors
	 lightgreen	= 0x59E8AF,
	 lightred	= 0xE86759,
	 lightyellow= 0xE8D659,
	 lightblue	= 0x598FE8

	//default =0x000000;
};

static SDL_Color getColor(int color){
	SDL_Color temp = {0,0,0};
	switch(color){
			case red		: {SDL_Color thisColor = {0,255,0};			temp = thisColor; break;}
			case green		: {SDL_Color thisColor = {0, 255,0};		temp = thisColor; break;}
	        case blue		: {SDL_Color thisColor = {0, 0, 255};		temp = thisColor; break;}
			case orange		: {SDL_Color thisColor = {255,128, 64};		temp = thisColor; break;}
			case brown		: {SDL_Color thisColor = {128, 64, 0};		temp = thisColor; break;}
			case yellow		: {SDL_Color thisColor = {255, 255,0};		temp = thisColor; break;}
			case dark_green	: {SDL_Color thisColor = {0, 128, 0};		temp = thisColor; break;}
			case dark_blue	: {SDL_Color thisColor = {0, 0, 128};		temp = thisColor; break;}
			case purple		: {SDL_Color thisColor = {128, 0, 128};		temp = thisColor; break;}
			case pink		: {SDL_Color thisColor = {255,0, 128};		temp = thisColor; break;}
			case black		: {SDL_Color thisColor = {0, 0, 0} ;		temp = thisColor; break;}
			case white		: {SDL_Color thisColor = {255, 255, 255};	temp = thisColor; break;}
			case grey		: {SDL_Color thisColor = {128,128,128};		temp = thisColor; break;}
			case lightgreen : {SDL_Color thisColor = {89,232,175};		temp = thisColor; break;}
			case lightred	: {SDL_Color thisColor = {232,103,89};		temp = thisColor; break;}
			case lightyellow: {SDL_Color thisColor = {232,214,89};		temp = thisColor; break;}
			case lightblue	: {SDL_Color thisColor = {89,143,232};		temp = thisColor; break;}
			default			: {SDL_Color thisColor = {0, 0, 0} ;		temp = thisColor; break;}
			
	}
	return temp;
}
#endif COLORS_H